﻿using System;
using WebDotNet.HttpHandlers;
using WebDotNet.Samples.HelloWorld.Handlers;

namespace WebDotNet.Samples.HelloWorld
{
	public class Global : System.Web.HttpApplication
	{
		protected void Application_Start(object sender, EventArgs e)
		{
			registerUrls();
		}

		private void registerUrls()
		{
			RequestHandler.RegisterUrlHandler("", typeof(Index));
			RequestHandler.RegisterUrlHandler("{name}", typeof(Index));
			RequestHandler.RegisterUrlHandler("redirect/{redirectType}", typeof(Redirect));
		}
	}
}
